package com.irdstudio.apicenter.gateway.core.jdbc;

import org.springframework.dao.DataAccessException;

/**
 * 移动服务端数据库异常（要继承子RuntimeException 用于Spring 事务回滚）
 * @author ZhangHao
 * @version 1.0
 * @date 2015-06-04
 */
public class MaccsDBException extends DataAccessException {
	private static final long serialVersionUID = 1L;
	
	private String errCode = null;

	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

	public MaccsDBException(String msg, Throwable cause, String errCode) {
		super(msg, cause);
		this.errCode = errCode;
	}

	public MaccsDBException(String msg, Throwable cause) {
		super(msg, cause);
	}

	public MaccsDBException(String msg) {
		super(msg);
	}
	public MaccsDBException(String msg,String errorCode) {
		super(msg);
		this.errCode=errorCode;
	}

}
